load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")

package(default_visibility = ["//visibility:public"])

ts_library(
    name = "testing",
    srcs = glob(
        ["**/*.ts"],
        exclude = ["**/*.spec.ts"],
    ),
    module_name = "@angular/material-experimental/mdc-slider/testing",
    deps = [
        "//src/cdk/coercion",
        "//src/cdk/testing",
        "//src/material/slider/testing",
        "@npm//rxjs",
        "@npm//zone.js",
    ],
)

ng_test_library(
    name = "unit_tests_lib",
    srcs = glob(["**/*.spec.ts"]),
    deps = [
        ":testing",
        "//src/material-experimental/mdc-slider",
        "//src/material/slider/testing:harness_tests_lib",
    ],
)

ng_web_test_suite(
    name = "unit_tests",
    static_files = [
        "@npm//:node_modules/@material/slider/dist/mdc.slider.js",
    ],
    deps = [
        ":unit_tests_lib",
        "//src/material-experimental:mdc_require_config.js",
    ],
)
